import requests

from config import URL


class LonginApi(object):
    def __init__(self):
        self.login_url = URL+'/api/sys/login'

    def login(self, body):
        resp = requests.post(self.login_url, json=body)
        return resp
